package guestbook;

import java.io.IOException;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@SuppressWarnings("serial")
public class GuestbookServlet extends HttpServlet {
  public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
    // UserService userService = UserServiceFactory.getUserService();
    // User user = userService.getCurrentUser();
    //
    // if (user != null) {
    // resp.setContentType("text/plain");
    // resp.getWriter().println("Hello, " + user.getNickname());
    // resp.getWriter().println(userService.createLogoutURL("Logout"));
    // } else {
    // resp.sendRedirect(userService.createLoginURL(req.getRequestURI()));
    // }
  }
}
